<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>展示学生</title>
</head>
<body>
<table border="2px" align="center" cellpadding="0px" cellspacing="0px">
    <tr><td>学生id</td><td>学生姓名</td><td>学生年龄</td><td>学生生日</td></tr>

<c:forEach items="${stus}" var="stu">
    <tr>
        <td>${stu.id}</td>
        <td>${stu.name}</td>
        <td>${stu.age}</td>
        <td>${stu.birthday}</td>
        <td ><a href="/deleteStudentServlet?id=${stu.id}">删除</a> </td>
        <td><a href="/findStudentServlet?id=${stu.id}" >修改</a></td>
    </tr>
</c:forEach>
</table>
<h3><a href="add.jsp" >添加学生</a></h3>
</body>
</html>
